package com.mapbased.da;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: mapbased.com</p>
 *
 * @author chy_hs(Baily)
 * @version 1.0
 */
public class CacheValueBag
{
    long lastGet=0l;//System.currentTimeMillis();
    java.lang.ref.SoftReference valueRef;
  volatile  boolean getting=false;

    public Object getValue()
    {
        return this.valueRef == null ? null : this.valueRef.get();
    }

    public void setValue(Object o)
    {
        this.valueRef=new java.lang.ref.SoftReference(o);
        this.lastGet=System.currentTimeMillis();
    }
}
